package com.navi.loaddata.core.gpEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;

public class WppCdefectGlassFPK implements Serializable {
    private String glassId;
    private String opeId;
    private String eqptId;
    private String jgeCnt;
    private Timestamp evtTimestamp;

    @Column(name = "glass_id")
    @Id
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Column(name = "ope_id")
    @Id
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Column(name = "eqpt_id")
    @Id
    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    @Column(name = "jge_cnt")
    @Id
    public String getJgeCnt() {
        return jgeCnt;
    }

    public void setJgeCnt(String jgeCnt) {
        this.jgeCnt = jgeCnt;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppCdefectGlassFPK that = (WppCdefectGlassFPK) o;

        if (jgeCnt != that.jgeCnt) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (eqptId != null ? !eqptId.equals(that.eqptId) : that.eqptId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = glassId != null ? glassId.hashCode() : 0;
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (eqptId != null ? eqptId.hashCode() : 0);
        result = 31 * result + (jgeCnt != null ? jgeCnt.hashCode() : 0);
        return result;
    }

    @Column(name = "evt_timestamp")
    @Basic
    @Id
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }
}
